Package org.eclipse.ecf.tutorial.distribution.common.environmentinfo

Source Code of org.eclipse.ecf.tutorial.distribution.common.environmentinfo.RemoteEnvironmentInfoImpl

/****************************************************************************
* Copyright (c) 2008 Composent, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
*    Composent, Inc. - initial API and implementation
*****************************************************************************/

package org.eclipse.ecf.tutorial.distribution.common.environmentinfo;

import org.eclipse.ecf.tutorial.internal.distribution.common.Activator;
import org.eclipse.osgi.service.environment.EnvironmentInfo;

/**
*
*/
public class RemoteEnvironmentInfoImpl implements IRemoteEnvironmentInfo {

  private EnvironmentInfo getEnvironmentInfo() {
    return Activator.getDefault().getEnvironmentInfo();
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo#getCommandLineArgs()
   */
  public String[] getCommandLineArgs() {
    final EnvironmentInfo ei = getEnvironmentInfo();
    System.out.println("getCommandLineArgs()"); //$NON-NLS-1$
    return (ei == null) ? null : ei.getCommandLineArgs();
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo#getFrameworkArgs()
   */
  public String[] getFrameworkArgs() {
    final EnvironmentInfo ei = getEnvironmentInfo();
    System.out.println("getFrameworkArgs()"); //$NON-NLS-1$
    return (ei == null) ? null : ei.getFrameworkArgs();
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo#getNL()
   */
  public String getNL() {
    final EnvironmentInfo ei = getEnvironmentInfo();
    System.out.println("getNL()"); //$NON-NLS-1$
    return (ei == null) ? null : ei.getNL();
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo#getNonFrameworkArgs()
   */
  public String[] getNonFrameworkArgs() {
    final EnvironmentInfo ei = getEnvironmentInfo();
    System.out.println("getNonFrameworkArgs()"); //$NON-NLS-1$
    return (ei == null) ? null : ei.getNonFrameworkArgs();
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo#getOS()
   */
  public String getOS() {
    final EnvironmentInfo ei = getEnvironmentInfo();
    System.out.println("getOS()"); //$NON-NLS-1$
    return (ei == null) ? null : ei.getOS();
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo#getOSArch()
   */
  public String getOSArch() {
    final EnvironmentInfo ei = getEnvironmentInfo();
    System.out.println("getOSArch()"); //$NON-NLS-1$
    return (ei == null) ? null : ei.getOSArch();
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo#getWS()
   */
  public String getWS() {
    final EnvironmentInfo ei = getEnvironmentInfo();
    System.out.println("getWS()"); //$NON-NLS-1$
    return (ei == null) ? null : ei.getWS();
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo#inDebugMode()
   */
  public Boolean inDebugMode() {
    final EnvironmentInfo ei = getEnvironmentInfo();
    System.out.println("inDebugMode()"); //$NON-NLS-1$
    return (ei == null) ? null : new Boolean(ei.inDebugMode());
  }

  /* (non-Javadoc)
   * @see org.eclipse.ecf.examples.remoteservices.common.IRemoteEnvironmentInfo#inDevelopmentMode()
   */
  public Boolean inDevelopmentMode() {
    final EnvironmentInfo ei = getEnvironmentInfo();
    System.out.println("inDevelopmentMode()"); //$NON-NLS-1$
    return (ei == null) ? null : new Boolean(ei.inDevelopmentMode());
  }

}
TOP

Related Classes of org.eclipse.ecf.tutorial.distribution.common.environmentinfo.RemoteEnvironmentInfoImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.